<div class="g-bd clearfix">
        <?php echo $this->render('index/left.phtml');?>
        <!-- 主栏 -->
        <div class="fcj_menu">

    		<div class="fcj_blk0 w-blk-pdlshow">
                <h2 class="blk0h2 f-iblk clearfix">
                	<span class="spbg blkhdl"><a href="<?php echo MY_URL?>">Home</a> &gt; <span itemprop="name"><?php echo $this->keyword;?></span></span>
                    <span class="spbg blkhdr">
                    	&nbsp;
                    </span>                    
                </h2>
                <?php if(count($this->itemArray)>1):?>
	                <?php
	               	$desc = '';
	            	if(count($this->itemArray) > 0){
	            		$i=0;
	            		foreach($this->itemArray as $value){
	            			if($i > 2){
	            				break;
	            			}
	            			$i++;
	            			if(isset($value['subject'])){
	            				$desc.=$value['subject'].':'.$value['description']."<br />";
	            			}else{
	            				$desc.=$value[0]['name'].':'.$value[0]['description']."<br />";
	            			}
	            		}
	            	}
	            	$keyArray = preg_split('/[^a-zA-Z0-9]+/',$this->keyword);
	            	$newKeyArray = array();
	            	foreach($keyArray as $key => $value){
	            		$newKeyArray[$key] = '<strong>'.$value.'</strong>';
	            	}
	            	$desc = str_ireplace($keyArray,$newKeyArray,$desc);
	                ?>
                	<div style="padding: 10px; border: 1px solid #999; border-bottom: none;"><span itemprop="description"><?php echo $desc;?></span></div>
                <?php endif;?>
                <div class="blkbody">
                <?php if(count($this->itemArray)):?>
                <ul class="clearfix">
                	<?php $index=0;?>
	                <?php foreach($this->itemArray as $value):?>
	                  <?php if (isset($value['subject'])):?>
	                  <li class="clearfix">                    	
	                     <div class="prd simg"><a href="<?php echo $this->url($value['itemid']);?>" title="<?php echo $value['subject'];?>"><img alt="<?php echo $value['pattern_intro'];?>" title="<?php echo $value['pattern_intro'];?>" src="<?php echo MY_URL;?>/<?php echo $value['cut_url'];?>" onerror="javascript:this.src ='<?=MY_URL?>/html/images/nothingpic.jpg'" /></a></div>
	                     <div class="prdl">
                         	<h2 class="spname"><a href="<?php echo $this->url($value['itemid']);?>" title="<?php echo $value['subject'];?>"><?php echo $value['subject'];?></a></h2>
                            <div class="description"><?php echo $value['description'];?></div>
	                     	<div class="sprice clearfix"><a class="spbg f-iblk priceA" href="<?php echo $this->url($value['itemid']);?>" title="<?php echo $value['subject'];?>">Price <span class="delete">$<?php echo $value['m_org_price'];?></span> <strong>$<?php echo $value['max_price'];?></strong></a><a class="buynowA spbg f-iblk" href="<?php echo $this->url($value['itemid']);?>">BUY&nbsp;&nbsp;NOW</a></div>
                         </div>
                         <?php if($index<2):?>
                         <a href="<?php echo $this->url($value['itemid']);?>" class="hot-prd f-iblk">&nbsp;</a>
                         <?php else: ?>
                         <a href="<?php echo $this->url($value['itemid']);?>" class="discount-prd f-iblk"><?php echo intval(($value['m_org_price']-$value['max_price'])/$value['m_org_price']*100) ?>%</a>
                         <?php endif; ?>
                         <?if($value['proPrintnumber']):?>
                     		<a style="top:-6px;left:100px;" href="<?php echo $this->url($value['itemid']);?>" class="customize-prd f-iblk"></a>
                     	 <?php endif;?>
                      </li>
                      <?php $index++;?>
                      <?php else:?>
                       <li class="clearfix">                    	
	                     <div class="prd simg"><a href="/football_shirt_<?php echo $value[0]['id'];?>.html" title="<?php echo $value[0]['name'];?>"><img alt="<?php echo $value[0]['name'];?>" title="<?php echo $value[0]['name'];?>" src="<?php echo MY_URL;?>/<?php echo $value[0]['cutUrl'];?>" onerror="javascript:this.src ='<?=MY_URL?>/html/images/nothingpic.jpg'" /></a></div>
	                     <div class="prdl">
                         	<h2 class="spname"><a href="/football_shirt_<?php echo $value[0]['id'];?>.html" title="<?php echo $value[0]['name'];?>"><?php echo $value[0]['name'];?></a></h2>
                            <div class="description"><?php echo $value[0]['description'];?></div>
	                     	<div class="sprice clearfix"><a class="spbg f-iblk priceA" href="/football_shirt_<?php echo $value[0]['id'];?>.html" title="<?php echo $value[0]['name'];?>">Price <span class="delete"><?php echo $value[0]['price'];?></span></a><a class="buynowA spbg f-iblk" href="/football_shirt_<?php echo $value[0]['id'];?>.html" title="<?php echo $value[0]['name'];?>">BUY&nbsp;&nbsp;NOW</a></div>
	                 	 </div>
                      </li>
                      <?php endif;?>
	                <?php endforeach;?>           
                </ul>            
	                <?php else:?>
	                	<div style="text-align: center;font-weight: bold;color: red;padding: 20px 0;display: block;">No Results Match Your Search .</div>
	                <?php endif;?>                
                </div>   
                <div class="pages clearfix" style="margin-top: 10px;">
					<div class="g-pages-style">
						<?php echo $this->pageString?>
					</div>
				</div>   
				<div style="margin:10px;"><div class="fb-comments" data-href="http://www.fancycheapjersey.com" data-width="700" data-num-posts="50"></div></div>    
            </div>
            
        </div>
    </div>
<script type="text/javascript">
	function changeMode(thisSelect)
	{
		var href=window.location.href.split('?')[0];
		window.location.href=href+"?keyword=<?php echo $this->keyword;?>&order="+thisSelect.value+'&page=<?=$this->page?>';
	}
	$('#order').val('<?php echo $this->order;?>');
</script>